package cn.bxshey.feign.api;

import cn.bxshey.general.Result.Result;
import cn.bxshey.general.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


import java.util.List;

/**
 @作者：不想说话而已
 @Date：2023/11/27 21:50
 */
@FeignClient(value = "module-user")
public interface UserClient extends BaseClient {

    String URL = "/user";

    @GetMapping(URL+"/test")
    Result<String> testDemo();

    @GetMapping(URL+"/selectAll")
    Result<List<User>> selectAll();


    @GetMapping(URL+"/selectById/{id}")
    Result<User> selectById(@PathVariable("id") Long id);

}
